package com.cloudkinto.dao;

import com.cloudkinto.entity.ProductStockDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author hua
 * @since 2022-09-21
 */
@Mapper
public interface ProductStockDao extends BaseMapper<ProductStockDo> {
    ProductStockDo getStockById(Long id);

    int updateStockById(Long id, int count);

    int updateStockById2(Long id, int goodQuantity, int badQuantity);


}
